<script>
	var message = "<?php echo $message;?>";
	if(message != 'error') {
		parent.$('#image_preloader').hide();
		
		parent.$('img.member_photo').fadeOut('fast', function(){
			parent.$('img.member_photo').attr('src','<?php echo base_url()?>uploads/<?php echo $new_photo?>');
			parent.$('img.member_photo').fadeIn('slow');
		});
	} 
	//alert(message);
	parent.$("#overlay_box p.loading_message").html(message);
	parent.$("#overlay_box").overlay().load();
	setTimeout("parent.$('#overlay_box button.close').trigger('click')",2000);
</script>
